import {
	http
}
from '@/utils/request.js'
// 用户中心
export const userinfo = (data) => {
	return http.post('/addons/shopro/user.user/profile', data)
}
// 修改头像。昵称，性别，生日
export const userprofile = (data) => {
	return http.post('/api/user/profile', data)
}
// 登录
export const userphone = (data) => {
	return http.post('/api/login/wxlogin', data)
}
// 用户加盟图，联系我们
export const configfile = (data) => {
	return http.post('/api/user/configfile', data)
}
// 地址列表
export const addresslist = (data) => {
	return http.post('/api/goods/addresslist', data)
}
// 设为默认地址
export const addressmoren = (data) => {
	return http.post('/api/goods/addressmoren', data)
}
// 删除地址
export const deladdress = (data) => {
	return http.post('/api/goods/deladdress', data)
}
//增加修改地址
export const addaddress = (data) => {
	return http.post('/api/goods/addaddress', data)
}
// 地址详情
export const addressdetail = (data) => {
	return http.post('/api/goods/addressdetail', data)
}
// 常见问题
export const cjwt = (data) => {
	return http.post('/addons/shopro/data.faq', data)
}
// 加盟
export const jiamenginit = (data) => {
	return http.post('/api/user/jiameng', data)
}
// 充值金额
export const moneylist = (data) => {
	return http.post('/addons/shopro/trade.order/rechargeRules', data)
}
// 提交充值订单
export const rechargeorder = (data) => {
	return http.post('/addons/shopro/trade.order/recharge', data)
}
// 充值订单支付
export const prepay = (data) => {
	return http.post('/addons/shopro/pay/prepay', data)
}
// 充值记录
export const shoprotrade = (data) => {
	return http.post('/addons/shopro/trade.order', data)
}
// 余额明细
export const yemxinit = (data) => {
	return http.post('/addons/shopro/user.wallet_log', data)
}
// 积分记录
export const jifenrecord = (data) => {
	return http.post('/addons/shopro/user.wallet_log', data)
}
// 默认地址
export const addressfile = (data) => {
	return http.post('/api/goods/addressfile', data)
}
// 所有自提门店
export const allshop = (data) => {
	return http.post('/api/user/allshop', data)
}
// 售后订单
export const orderlist1 = (data) => {
	return http.post('/addons/shopro/order.aftersale', data)
}
// 订单列表
export const orderlist = (data) => {
	return http.post('/addons/shopro/order.order', data)
}
// 确认购买，计算价格
export const calcorder = (data) => {
	return http.post('/addons/shopro/order.order/calc', data)
}
// 下单
export const createorder = (data) => {
	return http.post('/addons/shopro/order.order/create', data)
}
// 支付
export const payPrepay = (data) => {
	return http.post('/addons/shopro/pay/prepay', data)
}
// 收藏列表
export const sclist = (data) => {
	return http.post('/addons/shopro/user.goods_log', data)
}

// 订单详情
export const orderdetail = (data) => {
	return http.post('/addons/shopro/order.order/detail', data)
}
// 订单退款
export const applyRefund = (data) => {
	return http.post('/addons/shopro/order.aftersale/add', data)
}
// 开通会员
export const viporder = (data) => {
	return http.post('/api/user/viporder', data)
}
// 支付
export const prepaym = (data) => {
	return http.post('/addons/shopro/pay/prepay', data)
}
// 支付
export const shouh = (data) => {
	return http.post('/addons/shopro/order.order/confirm', data)
}
// 取消订单
export const cancelorder = (data) => {
	return http.post('/addons/shopro/order.order/cancel', data)
}

// 根据核销码查询
export const saohexiao = (data) => {
	return http.post('/addons/shopro/order.order/hexiaodetail', data)
}
// 核销订单
export const orderhexiao = (data) => {
	return http.post('/addons/shopro/order.hexiao', data)
}
// 核销订单
export const hexiao1 = (data) => {
	return http.post('/addons/shopro/order.order/hexiao', data)
}
// 提现记录
export const tixian = (data) => {
	return http.post('/addons/shopro/withdraw', data)
}
// 银行卡列表
export const account = (data) => {
	return http.post('/addons/shopro/user.account/index', data)
}
// 添加编辑银行卡号
export const saveaccount = (data) => {
	return http.post('/addons/shopro/user.account/save', data)
}
// 银行卡详情
export const accountdetail = (data) => {
	return http.post('/addons/shopro/user.account/detail', data)
}
// 提现
export const apply = (data) => {
	return http.post('/addons/shopro/withdraw/apply', data)
}